package com.example.hibernate.e.inheritance_4;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="CREDIT_CARD")
@PrimaryKeyJoinColumn(name="CREDIT_CARD_ID")
public class CreditCard extends BillingDetails {
	
	
	@Column(name="CC_NUMBER")
	private String number;
	
	@Column(name="CC_EXPMONTH")
	private String expMonth;
	
	@Column(name="CC_EXPYEAR")
	private String expYear;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getExpMonth() {
		return expMonth;
	}

	public void setExpMonth(String expMonth) {
		this.expMonth = expMonth;
	}

	public String getExpYear() {
		return expYear;
	}

	public void setExpYear(String expYear) {
		this.expYear = expYear;
	}

	@Override
	public String toString() {
		return "CreditCard [number=" + number + ", expMonth=" + expMonth + ", expYear=" + expYear + "]";
	}
}
